* {
    margin: 0;
    padding: 0;
    -webkit-user-select: none;
}

@-webkit-keyframes fromright {
    from {
        -webkit-transform: translateX(100%) translateZ(0);
    }
    to {
        -webkit-transform: translateX(0) translateZ(0);
    }
}

@-webkit-keyframes toright {
    from {
        -webkit-transform: translateX(0) translateZ(0);
    }
    to {
        -webkit-transform: translateX(100%) translateZ(0);
    }
}

@-webkit-keyframes fromleft {
    from {
        -webkit-transform: translateX(-100%) translateZ(0);
    }
    to {
        -webkit-transform: translateX(0) translateZ(0);
    }
}

@-webkit-keyframes toleft {
    from {
        -webkit-transform: translateX(0) translateZ(0);
    }
    to {
        -webkit-transform: translateX(-100%)  translateZ(0);
    }
}

.from-left {
    display: -webkit-box !important;

    -webkit-transform: translateX(0) ;
    -webkit-animation: fromleft 300ms;
}

.to-left {
    display: -webkit-box !important;

    -webkit-transform: translateX(-100%) ;
    -webkit-animation: toleft 300ms;
}

.from-right {
    display: -webkit-box !important;

    -webkit-transform: translateX(0) ;
    -webkit-animation: fromright 300ms;
}

.to-right {
    display: -webkit-box !important;

    -webkit-transform: translateX(100%) ;
    -webkit-animation: toright 300ms;
}

.page {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    display: none;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-box-pack: center;
    -webkit-box-align: center;
    background-image: url(images/Background/starBackground.png);
    background-size: 127px auto;
}

.page.over {
    z-index: 20;
    background: rgba(0,0,0,0.3);
}

.current {
    display: -webkit-box;
}

.end {
    -webkit-box-pack: end;
    padding-bottom: 40px;
}

section, header, figure, div {
    display: -webkit-box;
}

header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10;
    padding: 8px;
    -webkit-box-orient: horizontal;
}

body {
    display: -webkit-box;
    overflow: hidden;
    font-family: helvetica, Arial, sans-serif;
}

canvas {
    display: block;
    position: absolute;
    width: 100%;
    height: 100%;
}
.start canvas {
    -webkit-animation: background_move 4s linear infinite;
}

.button {
    width: 226px;
    height: 51px;
    margin: 6px;
    -webkit-box-pack: center;
    -webkit-box-align: center;
    background-image: url(images/buttons_and_icons.png);
    background-size: 373px auto;
    background-position: 0 0;
}

.button.small {
    width: 106px;
    background-position: -226px 0;
}

.button.circle {
    width: 41px;
    height: 42px;
    background-position: -332px 0;
}

.button:active,
.button.active {
    background-position: 0 -51px;
}

.button.small:active,
.button.small.active {
    background-position: -226px -50px;
}

.button.circle:active,
.button.circle.active {
    background-position: -332px -50px;
}

.button div {
    height: 24px;
    background-image: url(images/texts.png);
    background-size: 257px auto;
}

.button div[data-text=start-game] {
    background-position: 0 -444px;
    width: 128px;
    height: 24px;
}

.button div[data-text=options] {
    background-position: 0 -395px;
    width: 97px;
}

.button div[data-text=language] {
    background-position: 0 -99px;
    width: 112px;
}

.button div[data-text=reset-game] {
    background-position: 0 -419px;
    width: 123px;
}

.button div[data-text=continue] {
    background-position: 0 0;
    width: 110px;
}

.button div[data-text=skip-level] {
    background-position: 0 -50px;
    width: 112px;
}

.button div[data-text=level-select] {
    background-position: 0 -74px;
    width: 128px;
}

.button div[data-text=main-menu] {
    background-position: 0 -173px;
    width: 122px;
}

.button div[data-text=replay] {
    background-position: 0 -149px;
    width: 80px;
}

.button div[data-text=next] {
    background-position: 0 -124px;
    width: 53px;
}

.button.circle div {
    height: 22px;
    background-image: url(images/buttons_and_icons.png);
    background-size: 373px auto;
}

.button.circle div[data-text=back] {
    width: 29px;
    background-position: -237px -119px;
}

.button.circle div[data-text=pause] {
    width: 29px;
    background-position: -301px -119px;
}

.button.small div[data-text=melody],
.button.small div[data-text=sound] {
    background-image: url(images/buttons_and_icons.png);
    background-size: 373px auto;
    width: 60px;
    height: 50px;
}

.button.small div[data-text=melody]{
    background-position: -120px -110px;
}

.button.small div[data-text=sound]{
    width: 50px;
    background-position: -181px -110px;
}

.action {
    width: 40px;
    height: 40px;
}

.content {
    -webkit-box-flex: 1;
}